package com.jia.leetCode;

/**
 * LCP 06. 拿硬币
 *
 */
public class LCP06 {
    public int minCount(int[] coins) {
        int ans = 0;
        for(int i = 0; i < coins.length; i++) {
            ans += (coins[i]+1) / 2;
        }
        return ans;
    }
}
